package shell

import (
	"fmt"
)

type InstallApp struct{}

func (ia InstallApp) InstallHadoop() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.SshStr())
	str = fmt.Sprintf("%s%s", str, is.HadoopStr())
	return str
}

func (ia InstallApp) InstallNginx() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.NginxStr())
	return str
}

func (ia InstallApp) InstallNginxSbin() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.NginxSbinStr())
	return str
}

func (ia InstallApp) InstallRedis() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.RedisStr())
	return str
}

func (ia InstallApp) InstallMaven() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.MavenStr())
	return str
}

func (ia InstallApp) InstallJava() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.JavaStr())
	return str
}

func (ia InstallApp) InstallScala() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.ScalaStr())
	return str
}

func (ia InstallApp) InstallKafka() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.KafkaStr())
	return str
}

func (ia InstallApp) InstallSpark() string {
	is := new(InstallStr)
	str := ""
	str = fmt.Sprintf("%s%s", str, is.SparkStr())
	return str
}
